package exercise2;

import java.util.Scanner;

public class Cylinder extends BaseExample {
//	圆柱体积计算
	public void cylinder_volume() {

		this.logger.debug("请输入圆柱体的底面半径r");
		@SuppressWarnings("resource")
		Scanner s = new Scanner(System.in);
		double r = s.nextDouble();
		this.logger.debug("请输入圆柱体的高h");
		double h = s.nextDouble();
		this.logger.debug("圆柱体的体积V=" + Math.PI * Math.pow(r, 2) * h);

	}
}
